home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_shs_spiderdrop.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
71 lines
# Jones 3D Cog Script
#
# shs_SpiderDrop.cog
#
# [GGJ] && [TRM]
#
# [JWC] added triggered by walking
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ========================================================================================
symbols
message killed
message startup
message entered
surface trig_Spider
thing spiderGhost0
thing spider0 local
thing player local
template tpl_Spider=spider_wall local
int population=0 local
end
# ========================================================================================
code
startup:
spider0 = -1;
population = 0;
player = GetLocalPlayerThing();
PrintInt(population);
return;
entered:
if ((spider0 != -1) || (population != 0))
return;
if ((GetSenderRef() == trig_Spider) && (GetSourceRef() == player))
{
population = 1;
Sleep(0.75);
spider0 = CreateThing(tpl_Spider, spiderGhost0);
CaptureThing(spider0);
}
return;
# ========================================================================================
killed:
spider0 = -1;
population = 0;
return;
# ========================================================================================
end